<template>
	<view class="paper-list-container">
		<view class="paper-list u-f">
			<view class="paper-list-userpic">
				<image :src="item.userpic" mode="widthFix" lazy-load=""></image>
			</view>
			<view class="paper-list-right">
				<view class="top u-f u-f-js">
					<view class="username">{{item.username}}</view>
					<view class="time">{{item.time}}</view>
				</view>
				<view class="bottom u-f u-f-js">
					<view class="data">{{item.data}}</view>
					<uni-badge v-if="item.noreadnum>0" :text="item.noreadnum" type="error" />
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import uniBadge from '../uni-badge/uni-badge.vue'
	export default {
		components:{
			uniBadge
		},
		props:{
			item:Object
		}
	}
</script>

<style>
	.paper-list-container {
		padding:0 20upx  ;
	}
	.paper-list {
		align-items: center;
		border-bottom: 1upx solid #eee;
	}
	.paper-list-userpic{
		padding: 20upx 0;
	}
	.paper-list-userpic image {
		width:100upx;
		height:100upx;
		border-radius: 50%;
		margin-right: 20upx;
	}
	.paper-list-right {
		flex:1;
	}
	.paper-list-right .username {
		font-size: 35upx;
	}
	.paper-list-right .time {
		color:#cdcdcd;
	}
	.paper-list-right .data {
		color:#cdcdcd;
	}
</style>
